package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@Entity
@Table(name = "t_yenlien_product")
public class YenlienProduct extends BaseEntity {


    @ApiModelProperty(value = "序号", example = "1")
    private Integer sort;


    @ApiModelProperty(value = "产品名称", example = "德格智慧农业")
    private String name;

    @Column(columnDefinition = "longtext")
    private String coverImg;


    @ApiModelProperty(value = "产品介绍（JSON 数组）， characteristic=特点, introduce=介绍", example = "[{'characteristic': '特点鲜明', 'introduce': '物美价廉'}]")
    @Column(columnDefinition = "longtext")
    private String introduce;


//    @ApiModelProperty(value = "功能描述（富文本）", example = "*.png")
//    @Column(columnDefinition = "longtext")
//    private String func;


    @ApiModelProperty(value = "应用场景（JSON 数组）， name=场景名称, img=功能截图(多个;分割)", example = "[{'name': '其他场景', 'img': '1.png;2.png'}]")
    @Column(columnDefinition = "longtext")
    private String scenario;


    @ApiModelProperty(value = "是否首页展示", example = "false")
    private Boolean homeShow;


    @ApiModelProperty(value = "状态 1=启用 2=禁用", example = "1")
    private String state;


    @ApiModelProperty(value = "创建时间")
    private String createTime;


    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }


    public String getScenario() {
        return scenario;
    }

    public void setScenario(String scenario) {
        this.scenario = scenario;
    }

    public Boolean getHomeShow() {
        return homeShow;
    }

    public void setHomeShow(Boolean homeShow) {
        this.homeShow = homeShow;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
